/**
 * <p>Title: AuditTrailRecordDao</p>

 * <p>Description: 追踪记录Dao接口</p>
 * <p>Copyright: Baosight Software LTD.co Copyright (c) 2016</p>
 * <p>Company: Baosight Software</p>
 * @author Huang Zhong wei
 * @version 1.0
 * <pre>Histroy:
 *       2016-10-10  Huang Zhong wei  Create
 *</pre>
*/
package cn.jhg.account.persist;

import java.util.List;
import java.util.Map;

import cn.jhg.account.entity.AuditTrailRecord;
import cn.jhg.account.entity.User;

public interface AuditTrailRecordDao {
	/**
	 * 新增追踪记录
	 * 
	 * @param record	AuditTrailRecord审计记录实体
	 * @return		Error Code
	 */
	public int addRecord(AuditTrailRecord record);
	
	/**
	 * 根据ID获取追踪记录
	 * @param id	int 审计记录id
	 * @return		AuditTrailRecord
	 */
	public AuditTrailRecord findRecordById(int id);
	
	/**
	 * 获取追踪记录
	 * @param map	Map 
	 * @return		List<Integer>
	 */
	public List<Integer> findRecords(Map<String,Object> map);
	
	/**
	 * 根据签名id获取操作人信息
	 * @author qianpengji
	 * @param id 签名id
	 * @return user 操作人用户实体类
	 */
	public User findUserNameById(int id);
	
	/**
	 * 通过签名id查询记录
	 * @param sid 签名id
	 * @return AuditTrailRecord 记录实体
	 */
	public AuditTrailRecord findAllRecordBySid(int sid);
}
